package org.finesys.common.websocket.annotation;

import org.finesys.common.websocket.config.WebSocketConfig;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;


/**
 * 启用webSocket
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(WebSocketConfig.class)
@ConditionalOnProperty(prefix = "websocket", name = "enabled", havingValue = "true")
public @interface EnableWebSocket {
}
